package com.vf.admin.miaodong.service.impl;

import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.dao.AfterVisitorDao;
import com.vf.admin.miaodong.entity.AppVisitor;
import com.vf.admin.miaodong.service.AfterVisitorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 访客记录
 */
@Service
public class AfterVisitorServiceImpl implements AfterVisitorService {

    @Autowired
    AfterVisitorDao afterVisitorDao;

    /**
     * 查询列表
     */
    @Override
    public List<AppVisitor> list(Map<String, Object> paraMap, SplitPageBean splitPage) {
        return afterVisitorDao.list(paraMap, splitPage);
    }

    /**
     * 详情
     */
    @Override
    public AppVisitor get(Integer id) {
        return afterVisitorDao.get(id);
    }

    /**
     * 添加/修改
     */
    @Override
    public void save(AppVisitor haoYou) {
        afterVisitorDao.save(haoYou);
    }

    /**
     * 删除
     */
    @Override
    public void del(Integer id) {
        afterVisitorDao.del(id);
    }

}
